import request from "@/utils/request";

// 注册接口
export const register = (data) => {
  return request.post("/user/registered", data);
};

// 登录接口
export const login = (data) => {
  return request.post("/user/login", data);
};

//获取用户信息资料
export const user = (data) => {
  return request.get("/user", data);
};

//获取用户信息资料
export const ViewBookmark = (data) => {
  return request.get("/user/favorites", data);
};

//获取首页轮播图
export const getViewpager = (data) => {
  return request.get("/home/swiper", data);
};

// 租房小组
export const getRentGroup = (data) => {
  return request.get("/home/groups", data);
};
